import request from "./request.js";

// 图片上传
export function upload(data) {
  return request({
    url: '/file/upload',
    method: 'post',
    data
  })
}

// 微信授权登录
export function wxLogin(data) {
  return request({
    url: '/auth/wxapp/login',
    method: 'post',
    data
  })
}

// 获取用户详细信息
export function getInfo() {
  return request({
    url: '/system/user/getInfo',
    method: 'get'
  })
}

// 提交评价
export function submitReview(data) {
  return request({
    url: '/system/dining-review',
    method: 'post',
    data
  })
}

// 投诉
export function submitComplaintInfo(data) {
  return request({
    url: '/system/complaint-info',
    method: 'post',
    data
  })
}